package com.zhiyou100.serice.Impl;

import com.zhiyou100.mapper.SpeakerMapper;
import com.zhiyou100.model.Speaker;
import com.zhiyou100.serice.SpeakerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SpeakerServiceImpl implements SpeakerService {
    @Autowired
    private SpeakerMapper mapper;
    public List<Speaker> findAll() {
        return mapper.findAll();
    }

    public Speaker findById(Integer id) {
        return mapper.findById(id);
    }

    public void update(Speaker speaker) {
        mapper.update(speaker);
    }

    public void add(Speaker speaker) {
        mapper.add(speaker);
    }

    public void delete(Integer id) {
        mapper.delete(id);
    }
}
